package com.cldz.feign;

import com.cldz.response.support.ServerResponse;
import com.cldz.config.FeignConfiguration;
import com.cldz.common.dto.req.FsuDto;
import com.cldz.common.dto.req.FsuSpDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 14:06 2018/12/25
 * @ Description：
 * @ Modified By：
 */
@FeignClient(name = "data" ,configuration = FeignConfiguration.class)
public interface FsuFeign {

    @RequestMapping(value = "/fsuGetDevices",method = RequestMethod.GET)
    ServerResponse getFsuGetDevices(FsuDto fsuDto);

    @RequestMapping(value = "/fsuGetDevicesWithStation",method = RequestMethod.GET)
    ServerResponse getFsuGetDevicesWithStation(FsuDto fsuDto);

    @RequestMapping(value = "/fsuGetSpecifyDevice/{suID}",method = RequestMethod.GET)
    ServerResponse getFsuGetSpecifyDevice(@PathVariable(name = "suID")String suID);

    @RequestMapping(value = "/fsuGetSunDev/{suID}",method = RequestMethod.GET)
    ServerResponse getFsuGetSunDev(@PathVariable(name = "suID")String suID);

    @RequestMapping(value = "/fsuGetSpID",method = RequestMethod.GET)
    ServerResponse getFsuGetSpID(FsuSpDto fsuSpDto);
}
